//
//  BSAnimation.h
//  Spriter_forCocs2d
//
//  Created by Yang Bean on 13/4/15.
//
//

#import <Foundation/Foundation.h>
@class BSMainLine;
@class BSTimeLine;
@interface BSAnimation : NSObject
{
    BSMainLine* m_mainLine;
    NSMutableDictionary* m_timelines;
    int m_id;
    NSString* m_name;
    int m_length;
    int m_looping;
}
@property (retain) BSMainLine* mainline;
- (id)initWithId:(int)animationId
            name:(NSString*)name
          length:(int)lebgth
          isLoop:(int)loop;
- (void)addTimeLine:(BSTimeLine*)timeline key:(NSString*)key;
- (NSString*)name;
- (int)animationID;
- (int)length;
- (BOOL)isLooping;
- (NSArray*)timelines;
- (BSTimeLine*)timelinsWithTimelineID:(int)tid;
@end
